import { createAPI, createFormAPI } from '@/utils/request'

export const insertPigFatteningHouseDeathRecords = data => createFormAPI('/admin/pigFatteningHouseDeathRecords', 'post', data)
export const deletePigFatteningHouseDeathRecords = data => createAPI(`/admin/pigFatteningHouseDeathRecords/${data.id}`, 'delete', data)
export const updatePigFatteningHouseDeathRecords = data => createAPI('/admin/pigFatteningHouseDeathRecords', 'put', data)
export const selectPigFatteningHouseDeathRecords = data => createAPI('/admin/pigFatteningHouseDeathRecords', 'get', data)
export const pigFatteningHouseDeathRecordsNum=data =>createAPI('/admin/pigFatteningHouseDeathRecordsNum',"get",data)
